package com.example.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Repository;


/**
 * 本类用来演示:
 *
 * @Author 胡英俊
 * @Date 2022/7/27 22:04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@RefreshScope
@Repository
public class Hero {
    @Value("${hero.name}")
    private String name;
    @Value("${hero.age}")
    private Integer age;
    @Value("${hero.address}")
    private String address;
    @Value("${hero.hobby}")
    private String hobby;

}
